package com.llt.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
@ApiModel(value = "二级分类实现类")
public class ClassSecond implements Serializable {
    @ApiModelProperty(hidden = true)
    private int id;
    @ApiModelProperty("二级分类名字")
    @NotBlank(message = "名字不能为空")
    private String name;
    @ApiModelProperty("一级分类id")
    @NotBlank(message = "一级分类不能为空")
    private String parent_id;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty(hidden = true)
    private  int is_delete = 0;
    @ApiModelProperty("二级分类描述信息")
    @NotBlank(message = "二级分类描述信息不能为空")
    private String info;
    @ApiModelProperty("二级分类图标")
    private String icon;
    @NotBlank(message = "二级分类目标网址不能为空")
    @ApiModelProperty("二级分类目标网址")
    private String href;

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public int getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(int is_delete) {
        this.is_delete = is_delete;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
